/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.Seat;

public interface SeatDao extends Dao {

    /**
     * Retrieves all of the seats
     */
    public List getSeats(Seat seat);

    /**
     * Gets seat's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the seat's id
     * @return seat populated seat object
     */
    public Seat getSeat(final Integer id);

    /**
     * Saves a seat's information
     * @param seat the object to be saved
     */    
    public void saveSeat(Seat seat);

    /**
     * Removes a seat from the database by id
     * @param id the seat's id
     */
    public void removeSeat(Seat seat);
}

